home *** CD-ROM | disk | FTP | other *** search
- Lists the items contained in a directory.
-
- DIR file [/A[[:]attributes]] [/B] [/C=creator] [/L] [/O[[:]order]]
- [/P] [/S] [/T=file-type] [/W]
-
- file identifies the file to be listed. It can also be a wildcarded
- filename or a directory name, possibly preceded by a volume
- and path spec.
- /A lists items with specified attributes (a minus sign as a
- prefix means 'not'):
- D Directories
- F Files
- H Hidden files
- X Aliases
- /B lists item names one per line and without headings (bare format).
- /C=creator only lists files of the given creator.
- /L uses lowercase when filtering entries on the basis of wildcards.
- /O sorts the list with the following ordering options (a minus
- sign as a prefix reverses the order):
- D by Date & time of update (older first)
- G Group directories first
- N by Name (alphabetic)
- S by Size (smallest first)
- /P pauses after each screenful of listing.
- /S recursive display of all subdirectories of a given directory.
- /T=file-type only lists files of the given file type.
- /W lists item names in a wide format.
-
- Switches may be preset in the DIRCMD environment variable. When preset,
- a switch can be overriden by prefixing it in DIR with a minus sign.
-